package com.pinyoumei.pay.service;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.pinyoumei.pojo.TbPay;

@RequestMapping("/pay")
public interface PayService {
	
	/**
	 * 创建支付令牌
	 * @param pay
	 * @return
	 */
	@RequestMapping("/createPayToken")
	public String createPayToken(@RequestBody TbPay pay);
	
	/**
	 * 使用支付令牌查找支付信息
	 * @param payToken
	 * @return
	 */
	@RequestMapping("/getByToken")
	public String getByToken(@RequestParam("payToken")String payToken);

}
